package com.zjl.aop;


import org.springframework.aop.framework.ProxyFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Auther: zhuangjl
 * @Date: 2021/11/10 18:47
 */

@SpringBootApplication(scanBasePackages = {"com.zjl"})
public class AopApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(AopApplication.class, args);

        ProxyFactoryBean person = (ProxyFactoryBean)run.getBean("person");

    }
}
